<?php
require_once ( 'TVB/Entity/MemberBrowseHistoryEntity.php' ) ;
$page = 0 ;
$limit = 50 ;

$login_id = array_key_exists('login_id', $_REQUEST)?$_REQUEST['login_id']:'' ; 


$entity = new MemberBrowseHistoryEntity($login_id ) ;
$data = $entity->selectByQuery ( "select * from history where video_title != 'NULL' group by url order by datetime desc limit {$page},{$limit}" ) ;
echo json_encode ( $data ) ;
return ;

?>

